package org.example.ioc.demo;

import lombok.Data;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
@Data
public class ClassRoom {
    @Value("${classroom.id}")
    private Integer id;
    @Value("${classroom.name}")
    private String name;
    //数组过于复杂 不能用 只能用基本对象
//    @Value("${classroom.loves}")
//    private String[] loves;
}
